import { AgentRole, AgentStatus, CpuInfo, DriveInfo, MemoryInfo } from '../type';

export interface AgentDto {
  id?: number;
  identity: string;
  desc: string;
  advertiseIp: string;
  port: number;
  products: string[];
  status: AgentStatus;
  role: AgentRole;
  password: string;
  runningJob?: number;
  queuingJob?: number;
  cpu?: CpuInfo;
  drive?: DriveInfo;
  memory?: MemoryInfo;
  disconnectedAt?: Date;
}

export interface AgentPageQuery {
  currentPage: number;
  pageSize: number;
  identity?: string;
  product?: string;
}